<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>列表页</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/list.css" />
	<script type="text/javascript">
		var APP = '<?php echo "__APP__" ;?>';
	</script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/head.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/menu.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/right.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

	<!-- 为了保证IE载入以下文件 -->
	<script type="text/javascript" src="__PUBLIC__/Css/es5-shim/es5-sham.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Css/es5-shim/es5-shim.min.js"></script>
	<!-- 载入less.js -->
	<script type="text/javascript" src="__PUBLIC__/Css/es5-shim/less-1.5.0.min.js"></script>
</head>
<body>
<include file="__PUBLIC__/head.html"/>
<!-- 热门团购开始 -->
<div id="hot-shop">
	<span>热门团购：</span>
	<a href="{|U:'List/index',array('cid'=>9)}" target="_blank">自助餐</a>
	<a href="{|U:'List/index',array('cid'=>10)}" target="_blank">火锅</a>
	<a href="{|U:'List/index',array('cid'=>11)}" target="_blank">烤肉</a>
	<a href="{|U:'List/index',array('cid'=>13)}" target="_blank">麻辣烫</a>
	<a href="{|U:'List/index',array('cid'=>40)}" target="_blank">经济型酒店</a>
	<a href="{|U:'List/index',array('cid'=>41)}" target="_blank">豪华酒店</a>
	<a href="{|U:'List/index',array('cid'=>85)}" target="_blank">KTV</a>
	<a href="{|U:'List/index',array('cid'=>86)}" target="_blank">足疗按摩</a>
	
</div>
<!-- 热门团购结束 -->

<!-- 筛选条件开始 -->
<div id="choose">
	<div class="pos"><a href="__ROOT__">北京团购</a> > <a href="{|U:'List/index',array('cid'=>$cid)}">{$cname}</a></div>
	<div class="attr">
		<div class="attr-name">分类：</div>
		<div class="attr-list">
			<ul>
				<li><a href="{|U:'List/index',array('cid'=>$cid,'attr'=>$_GET['attr'],'sort'=>$_GET['sort'])}" <if value="$cid eq $_GET['cid']">class="hover"</if>>全部</a></li>
				<foreach from="$sonCate" key="" value="$v">
				<li><a href="{|U('List/index/',array('cid'=>$v['cid'],'attr'=>implode('_',$filter),'sort'=>$_GET['sort']))}" <if value="$v['cid'] eq $_GET['cid']">class="hover"</if>>{$v.cname}<span>{$v.count}</span></a></li>
				</foreach>
			</ul>
		</div>
	</div>
	<foreach from="$attrArr" key="$k" value="$v">
		<?php 
			$temp = $filter;
			$temp[$k] = 0; 
		?>
	<div class="attr">
		<div class="attr-name">{$v.attrname}：</div>
		<div class="attr-list">
			<ul>
				<li><a href="{|U('List/index/',array('cid'=>$_GET['cid'],'attr'=>implode('_',$temp),'sort'=>$_GET['sort']))}" <if value="$filter[$k] eq 0">class="hover"</if>>全部</a></li>

				<foreach from="$v['value']" key="$key" value="$value">
					<?php $temp[$k] = $key?>
				<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],"attr"=>implode('_',$temp),'sort'=>$_GET['sort'])}" <if value='$key eq $filter[$k]'>class="hover"</if>>{$value.value}<span>{$value.count}</span></a></li>

				</foreach>

			</ul>
		</div>
	</div>

	</foreach>
	<div id="sort">
		<table class="l-table" width="280" border="0" bgcolor="#e8e8e8" cellspacing="1" cellspacing="0">
			<tr height="20" bgcolor="#FFF">
				<td style="text-indent:0" width="60"<if value="$_GET['sort'] eq 'default' or $_GET['sort'] eq ''"> bgcolor="#eeeded"</if> align="center"><a class="white-a default" href="{|U:'List/index',array('cid'=>$_GET['cid'],"attr"=>$_GET['attr'],'sort'=>'default')}">默认排序</a></td>
				<td width="60"<if value="$sort eq 'sell'"> bgcolor="#eeeded"</if>><a class="white-a sales" href="{|U:'List/index',array('cid'=>$_GET['cid'],"attr"=>$_GET['attr'],'sort'=>"sell-$pai")}">销量<if value="$pai eq 'asc'"><i class="down"><else><i class="up"></i></if></a></td>
				<td width="60"<if value="$sort eq 'price'"> bgcolor="#eeeded"</if>><a class="white-a price" href="{|U:'List/index',array('cid'=>$_GET['cid'],"attr"=>$_GET['attr'],'sort'=>"price-$pai")}">价格<if value="$pai eq 'asc'"><i class="down"><else><i class="up"></i></if></a></td>
<!-- 				<td width="60" bgcolor="#FFF"><a class="white-a goodsay" href="javascript:">好评<i class="down"></i></a></td> -->
				<td width="70"<if value="$sort eq 'sell'"> bgcolor="#eeeded"</if>><a class="white-a sendtime" href="{|U:'List/index',array('cid'=>$_GET['cid'],"attr"=>$_GET['attr'],'sort'=>"time-$pai")}">发布时间<if value="$pai eq 'asc'"><i class="down"><else><i class="up"></i></if></a></td>
			</tr>
		</table>

		<table>
			<li>
				<td></td>
				<td></td>
				<td></td>
			</li>
		</table>
	</div>
</div>

<!-- 筛选条件结束 -->
<div id="list-main">
	<div id="left">
	<if value="empty($goodsArr)">
			<p style="font-size:14px;margin:20px 0 0 20px;">没有符合条件的商品</p>
			<else>
		<ul>
		<foreach from="$goodsArr" value="$v">

			<li class="list-box">
				<a href="{|U:'Article/index',array('gid'=>$v['gid'])}"><img src="__ROOT__/{$v.pic}" width="350" height="192" alt="" />
				<div class="sq"><span></span>北下关、对外经贸、人民大学、牡丹园/北太平庄、海淀区、五道口、小营、魏公村、崇文门</div>
				<div class="mark">
					<span class="m-yuyue"></span>
				</div></a>
				<a href="{|U:'Article/index',array('gid'=>$v['gid'])}">
					<p class="title2">{$v.title}</p>
					<p class="des">{$v.subtitle|hd_substr:40,'...'}</p>
				</a>
				<div class="price">
					<span class="cur-p">¥<strong>{$v.group_price}</strong></span>
					<span class="stor-p">门店价<del>¥{$v.price}</del></span>
				</div>
				<div class="bot">
					<div class="p1">已售<span>{$v.sell_num}</span></div>
					<div class="p2"><a href=""><span class="xing1"><span class="xing2"></span></span>{$v.comment_num}人评价</a></div>
				</div>
			</li>
		</foreach>

		</ul>
	</if>
	</div>
<!-- 右侧开始 -->
	<div id="right">
		<div class="version">
			<a href="http://i.meituan.com/mobile/down/meituan?" class="tel"></a>
			<a href="http://maoyan.com/" class="mao"></a>
		</div>
		<div id="view"></div>
		<if value="$hd.session.viewed">
		<div class="recently-viewed">
			<div class="title"><strong>最近浏览</strong></div>
			<ul style="padding:10px 0">
				<foreach from="$hd.session.viewed" key="$k" value="$v">
					<li>
						<div class="tu"><a href="{|U:'Article/index',array('gid'=>$k)}"><img src="__ROOT__/{$v.pic}" width="80" height="49" /></a></div>
						<div class="info">
							<p><a href="">{$v.title}</a></p>
							<p class="p2"><span>￥{$v.group_price}</span><del>{$v.price}</del></p>
						</div>
					</li>
				</foreach>
			</ul>
		</div>
		</if>
	</div>
<!-- 右侧结束 -->
	<div class="clear"></div>
</div>
<!-- 底部开始 -->
<load file="__PUBLIC__/footer.html"/>
<!-- 底部结束 -->
</body>
</html>